package com.atguigu.gmall.client.service;

import com.atguigu.gmall.entity.PaymentInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("shop-payment")
public interface PaymentFeignClientService {
    @GetMapping("/payment/getPaymentInfo/{outTradeNo}")
    public PaymentInfo getPaymentInfo(@PathVariable String outTradeNo);

    @GetMapping("/payment/queryAlipayTrade/{orderId}")
    boolean queryAlipayTrade(@PathVariable Long orderId);

    @GetMapping("/payment/closeAlipayTrade/{orderId}")
    void closeAlipayTrade(@PathVariable Long orderId);

}
